﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Stu_sys.Entity;

namespace Stu_sys.EntityConfig
{
    public class UserEntityConfig : IEntityTypeConfiguration<User>
    {
        public void Configure(EntityTypeBuilder<User> builder)
        {
            builder.Property(u=>u.UserName).HasColumnType("varchar(30)");
            builder.Property(u=>u.Password).HasColumnType("varchar(30)");
            builder.Property(u=>u.RealName).HasColumnType("varchar(30)");
            builder.Property(u=>u.Phone).HasColumnType("varchar(30)");
            builder.Property(u=>u.QQ).HasColumnType("varchar(30)");
        }
    }
}
